<h3>Berita</h3>
<p>
    <?php foreach ($access->result() as $a): ?>
        <?php echo get_add($a->news_add, 'news/add/') ?>
    <?php endforeach ?>
</p>

<table class="data">
    <tr class="data">
        <th class="data" width="30px">No</th>
        <th class="data" width="100px">Judul</th>
        <th class="data" width="">Isi</th>
        <th class="data" width="100px">Aksi</th>
    </tr>
    <?php foreach ($rows->result() as $news): ?>
        <tr class="data">
            <td class="data" width="30px"><?php echo $i ?></td>
            <td class="data"><?php echo $news->title ?></td>
            <td class="data"><?php echo word_limiter($news->body, 25) ?></td>
            <td class="data" width="75px">
        <center>
            <a href="show/<?php echo $news->id ?>"><img src="<?php echo base_url() ?>img/detail.png"></a>&nbsp;&nbsp;

            <?php foreach ($access->result() as $a): ?>
                <?php echo get_edit($a->news_edit, 'news/edit/', $news->id) ?>&nbsp;&nbsp;
                <?php echo get_delete($a->news_delete, 'news/delete/', $news->id) ?>&nbsp;&nbsp;
            <?php endforeach ?>

        </center>
        <?php $i++ ?>
    <?php endforeach ?>
</td>
</tr>

</table>

<p><?php echo $links; ?></p>

